package com.zqxq.file.exception;


import com.zqxq.common.constant.Result;

/**
 * @Description ：
 * @Author ： 解风
 * @Date ： 2017/09/26 14:18
 */
public class CustomException extends Exception {

    private Result result = new Result();

    public  CustomException(int code, String msg){
        super(msg);
        result.setCode(code);
        result.setMsg(msg);
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }
}
